Release 10.1A: OpenEdge Development:
Progress 4GL Reference


SET-PARAMETER( ) method

Lets you set parameters of one of the following:

parameter-number

An INTEGER expression indicating the order of the parameter. Use 1 for the first parameter, 2 for the second parameter, and so on.

data-type

A CHARACTER expression indicating the data type of the parameter and evaluating to one of the following:

iomode

A CHARACTER expression indicating the mode of the parameter and evaluating to one of the following:

parameter-value

An expression whose type is compatible with data-type.

The parameter-value argument may represent a determinate or indeterminate array. However, you cannot pass an array by value. You can pass an array only as a variable defined using the DEFINE VARIABLE statement with the EXTENT option. If you include the EXTENT keyword in the data-type argument, Progress ignores it. If you include the array element values in the parameter-value argument, Progress generates a compile error.

If iomode is “INPUT” or “INPUT-OUTPUT,” if the data type of parameter-value does not agree with the data type passed, parameter-value will automatically be converted to the data type passed during SET-PARAMETER( ) processing.

If iomode is “OUTPUT” or “INPUT-OUTPUT,” each of the following must be true:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095